package com.budwk.app.sqfw.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 整改状态
 */
@Getter
public enum RectificationStatusEnum {

    ALL(0, "全部"),
    NORMAL(1, "正常"),
    NOTRECTIFIED(2, "未整改"),
    RECTIFIED(3, "已整改");

    private Integer code;

    private String name;

    RectificationStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * @return
     */
    public static List<String> listNames() {
        return Arrays.stream(RectificationStatusEnum.values()).map(RectificationStatusEnum::getName).collect(Collectors.toList());
    }

}
